package com.jing.service.impl;

import com.jing.domain.Vo.PmsBrandVO;
import com.jing.domain.Vo.ProducAttributetCategoryVO;
import com.jing.domain.po.ProducAttributetCategoryPO;
import com.jing.domain.po.ProductAttributeValue;
import com.jing.mapper.PmsBrandmapper;
import com.jing.service.PmsBrandService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author：wp
 * @Package：com.jing.service.impl
 * @Project：jing
 * @name：PmsBrandServiceimpl
 * @Date：2024/5/27 20:20
 */
@Slf4j
@Service
public class PmsBrandServiceimpl implements PmsBrandService {
    @Autowired
    private PmsBrandmapper pmsBrandmapper;
    @Override
    public List<PmsBrandVO> list(String name) {
        return pmsBrandmapper.list(name);
    }

    @Override
    public void del(Integer id) {
        pmsBrandmapper.del ( id );
    }

    @Override
    public void add(PmsBrandVO productAttributsVO) {
          pmsBrandmapper.add(productAttributsVO);
    }

    @Override
    public void up(PmsBrandVO pms) {
   pmsBrandmapper.up(pms);
    }


    public void main(Integer id) {
    List<ProductAttributeValue> list= pmsBrandmapper.listpid();

    }














}
